<template>
<div class="layerRtb layerRtb-threecolumn layerRtb-right">
    <three-title :title="{name:'发起'}" :close="false">
        <span tag="i" class="rig_close fr" @click="$parent.$parent.clickFourShow()"></span>
    </three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "37">
        <div class="analyItem">
            <p class="analyItemTit tx-center">整改内容</p>
            <div class="analyItemCon">
                <p class="col-md-4">
                    <span class="cLightGray pr8 fl">罚款金额</span>
                    <span>{{changeContent !== null ? changeContent.money : ''}}</span>
                </p>
                <p class="col-md-4">
                    <span class="cLightGray pr8 fl">结束时间</span>
                    <span>{{changeContent !== null ?  $utils.format('yyyy-MM-dd', changeContent.endTime) : ''}}</span>
                </p>
                <!-- <p class="col-md-4">
                    <span class="cLightGray pr8 fl">积分</span>
                    <span>{{changeContent !== null ?  changeContent.integral : ''}}</span>
                </p> -->
                 <p class="col-md-12">
                    <span class="cLightGray pr8 fl">整改描述</span>
                    <span>{{changeContent !== null ? changeContent.content : ''}}</span>
                </p>
                <p class="col-md-12" v-if='changeContent !== null' >
                    <span class="cLightGray pr8 fl">整改图片</span>
                    <rx-viewer :images="changeContent.rectifyOrderPhotoList" class="fl">
                        <div class="clearfix">
                            <div v-for="(itemImg, index) of changeContent.rectifyOrderPhotoList" :key="index" class="fl mr10">
                                <img :src="itemImg | smallImg(78, 78)" :alt="index">
                            </div>
                        </div>
                    </rx-viewer>
                </p>
            </div>
        </div>
    </div>
</div>
</template>
<script>
import { getRectifyOrder } from '../../../Resources/Api/scene'
export default {
    data () {
        return {
            changeContent: null // 整改内容
        }
    },
    created () {
        this.getRectifyOrder()
    },
    methods: {
        getRectifyOrder () {
            let parm = {
                orderCode: this.$route.query.code
            }
            // 接口获取数据
            getRectifyOrder(parm).then(results => {
                if (results.data.StatusCode === 1) {
                    this.changeContent = results.data.Body.rectifyOrder
                }
            }).catch(error => {
                console.log(error)
            })
        }
    }
}
</script>
